Add user option to only display default tool bar
authorJared Finder <jared@finder.org>
Fri, 26 Jan 2024 18:08:30 +0000 (10:08 -0800)
committerEli Zaretskii <eliz@gnu.org>
Sat, 18 May 2024 09:46:22 +0000 (12:46 +0300)
commitda325ff7b29b0becdd1356021428fa100d240ec4
tree7bedb7552cad4e73e53bebea9aa04099d37d8ba4
parentfd3ab22a3eec5c3151b0791fc768e555b66e267c
Add user option to only display default tool bar

This works well with `window-tool-bar-mode', to be added in upcoming
commit.  Then the default tool bar is displayed frame-wide and
mode-specific tool bars are displayed in the window that mode is
active in.

* lisp/tool-bar.el (tool-bar-always-show-default): New user option.
(tool-bar--cache-key, tool-bar-make-keymap-1): Return default tool bar
when option is set.
lisp/tool-bar.el